package com.study.example.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.study.example.domain.City;
import org.springframework.stereotype.Service;

@Service
public class CityDubboConsumerServiceImpl implements ICityDubboConsumerService {

    @Reference(version = "1.0.0")
    CityDubboService cityDubboService;

    public void printCity() {
        String cityName="温岭";
        City city = cityDubboService.findCityByName(cityName);
        System.out.println(city);
    }
}
